font chooser: Add a tweak page
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 Jan 2018 03:52:05 +0000 (22:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 3 Jan 2018 17:18:18 +0000 (12:18 -0500)
commit15f8b2d0ae9df43df6f2ad0b0e0bad8e391caf22
tree289eb9f9ebfd6b33b6848d5659097f4ed6f3d07e
parent70bae02612e290741ffc6f579c872052ad525e34
font chooser: Add a tweak page

Add a button the dialog's header bar that lets us
switch to a second page where we can customize
the selected font.

Make the font chooser widget export an action that the
dialog can use for the button. This has some advantages:
- we can export not just the toggle state, but also enabled
- we can reuse the same enabled state to make the select
  button insensitive when no font is selected

To determine whether a font is selected, listen to changes
of the list selection. And ensure that the font chooser is
in an initial state when mapped, even if we close the dialog
from the tweak page.
gtk/gtkfontchooserdialog.c
gtk/gtkfontchooserwidget.c
gtk/gtkfontchooserwidgetprivate.h
gtk/ui/gtkfontchooserdialog.ui
gtk/ui/gtkfontchooserwidget.ui